#主动技能【视界锁定】

execute positioned ^ ^0.5 ^4 run scoreboard players set @a[distance=0.1..3.9,scores={EFLocks=0..},gamemode=!spectator] EFLocks 120
execute positioned ^ ^0.5 ^4 run scoreboard players remove @a[distance=0.1..3.9,scores={EFLocks=..-1},gamemode=!spectator] EFLocks 120
execute positioned ^ ^0.5 ^4 run effect give @a[distance=0.1..3.9,gamemode=!spectator] slowness 4 0 true
execute positioned ^ ^0.5 ^4 run effect give @a[distance=0.1..3.9,gamemode=!spectator] blindness 5 0 true

execute positioned ^ ^0.5 ^10 run scoreboard players set @a[distance=0.1..3.9,scores={EFLocks=0..},gamemode=!spectator] EFLocks 120
execute positioned ^ ^0.5 ^10 run scoreboard players remove @a[distance=0.1..3.9,scores={EFLocks=..-1},gamemode=!spectator] EFLocks 120
execute positioned ^ ^0.5 ^10 run effect give @a[distance=0.1..3.9,gamemode=!spectator] slowness 4 0 true
execute positioned ^ ^0.5 ^10 run effect give @a[distance=0.1..3.9,gamemode=!spectator] blindness 5 0 true

execute positioned ^ ^0.5 ^16 run scoreboard players set @a[distance=0.1..3.9,scores={EFLocks=0..},gamemode=!spectator] EFLocks 120
execute positioned ^ ^0.5 ^16 run scoreboard players remove @a[distance=0.1..3.9,scores={EFLocks=..-1},gamemode=!spectator] EFLocks 120
execute positioned ^ ^0.5 ^16 run effect give @a[distance=0.1..3.9,gamemode=!spectator] slowness 4 0 true
execute positioned ^ ^0.5 ^16 run effect give @a[distance=0.1..3.9,gamemode=!spectator] blindness 5 0 true

tellraw @a [{"selector":"@s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"：释放技能","color":"blue","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"【视界锁定】","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"—乔伊斯","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]

scoreboard players remove @s skPlayer 25
execute if score @s skPlayer matches ..0 run effect give @s minecraft:instant_damage 1 0
scoreboard players set @s skCDEXBottle 15
scoreboard players set @s skEXBottle 0